<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			var arr = [10,2,30,29,4,56,1,3];
			function sortArr(a,b){
				return a-b;
			}
			console.log(arr.sort(sortArr));
		</script>
	</body>
</html>
